#include <QtGui/QApplication>
#include <QDesktopWidget>
#include <QMessageBox>
#include <QDebug>
#include <QObject>
#include <QWidget>
#include <time.h>

#include "taskcontroller.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QDesktopWidget desktop;
    int numScreens = desktop.numScreens();
    bool isVirtualDesktop = desktop.isVirtualDesktop();
    int primaryScreen = desktop.primaryScreen();

#ifdef DEBUG
    qDebug() << "number of screens:" << numScreens;
    qDebug() << "isVirtualDesktop:" << isVirtualDesktop;
    qDebug() << "primaryScreen:" << primaryScreen;
#endif
    TaskController * newTaskWindow = new TaskController(numScreens, isVirtualDesktop, primaryScreen, &desktop);
    newTaskWindow->show();

    QRect rect = desktop.screenGeometry(primaryScreen);
    QSize size = desktop.screen(primaryScreen)->frameSize();

#ifdef DEBUG
    qDebug() << "primary Screen rect:" << rect;
    qDebug() << "primary Screen size:" << size;
#endif

    return a.exec();
}
